package com.swd.order.model;

import java.util.List;

public class OrderCommitModel {


    private OrderBean order;

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public static class OrderBean {
        /**
         * photo : https://thirdwx.qlogo.cn/mmopen/vi_32/Bdp1jt9dkfkmQecsbSXH4k5r3OOZLIHVwG8xn3eQ0IcUaAvkoiabjvrtNgjhZbBVREdtetzNYyNaic9bxBapRosg/132
         * username : 第五个季节
         * code : 093i0JFa1o93Tz0NyNFa18cWM94i0JF8
         * extraMeal : false
         * extraMealId : null
         * detail : {"date":"2020-10-29 09:39","num":1,"place":1,"flavor":1,"remark":"","foods":[{"id":1,"num":3},{"id":3,"num":2}]}
         */


        private String photo;
        private String username;
        private String openId;
        private boolean extraMeal;
        private Integer extraMealId;
        private Integer foodsNum;
        private DetailBean detail;



        public String getPhoto() {
            return photo;
        }

        public void setPhoto(String photo) {
            this.photo = photo;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getOpenId() {
            return openId;
        }

        public void setOpenId(String code) {
            this.openId = code;
        }

        public boolean isExtraMeal() {
            return extraMeal;
        }

        public void setExtraMeal(boolean extraMeal) {
            this.extraMeal = extraMeal;
        }

        public Integer getExtraMealId() {
            return extraMealId;
        }

        public void setExtraMealId(Integer extraMealId) {
            this.extraMealId = extraMealId;
        }

        public DetailBean getDetail() {
            return detail;
        }

        public void setDetail(DetailBean detail) {
            this.detail = detail;
        }

        public static class DetailBean {
            /**
             * date : 2020-10-29 09:39
             * num : 1
             * place : 1
             * flavor : 1
             * remark :
             * foods : [{"id":1,"num":3},{"id":3,"num":2}]
             */

            private String date;
            private int num;
            private int place;
            private int flavor;
            private String remark;
            private List<FoodsBean> foods;
            private String placeName;
            private String flavorName;
            private Integer foodsNum;
            private String mealType;

            public String getMealType() {
                return mealType;
            }

            public void setMealType(String mealType) {
                this.mealType = mealType;
            }

            public Integer getFoodsNum() {
                return foodsNum;
            }

            public void setFoodsNum(Integer foodsNum) {
                this.foodsNum = foodsNum;
            }

            public String getPlaceName() {
                return placeName;
            }

            public void setPlaceName(String placeName) {
                this.placeName = placeName;
            }

            public String getFlavorName() {
                return flavorName;
            }

            public void setFlavorName(String flavorName) {
                this.flavorName = flavorName;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public int getNum() {
                return num;
            }

            public void setNum(int num) {
                this.num = num;
            }

            public int getPlace() {
                return place;
            }

            public void setPlace(int place) {
                this.place = place;
            }

            public int getFlavor() {
                return flavor;
            }

            public void setFlavor(int flavor) {
                this.flavor = flavor;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }

            public List<FoodsBean> getFoods() {
                return foods;
            }

            public void setFoods(List<FoodsBean> foods) {
                this.foods = foods;
            }

            public static class FoodsBean {
                /**
                 * id : 1
                 * num : 3
                 */

                private int id;
                private int num;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getNum() {
                    return num;
                }

                public void setNum(int num) {
                    this.num = num;
                }
            }
        }
    }
}
